package com.eightbears.beboy.entity;

import com.eightbears.beboy.base.BaseDataEntity;
import com.eightbears.beboy.base.BaseEntity;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Bao on 2017/9/4.
 */

public class OrderEntity extends BaseEntity implements Serializable {

    private OrderData data;

    public OrderData getData() {
        return data;
    }

    public void setData(OrderData data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "OrderEntity{" +
                "data=" + data +
                '}';
    }

    public static class OrderData extends BaseDataEntity implements Serializable {
        private List<OrderInfo> list;

        public List<OrderInfo> getList() {
            return list;
        }

        public void setList(List<OrderInfo> list) {
            this.list = list;
        }

        @Override
        public String toString() {
            return "OrderData{" +
                    "list=" + list +
                    '}';
        }
    }

    public static class OrderDetailEntity extends BaseEntity {

        private OrderInfo data;

        public OrderInfo getData() {
            return data;
        }

        public void setData(OrderInfo data) {
            this.data = data;
        }

        @Override
        public String toString() {
            return "OrderDetailEntity{" +
                    "data=" + data +
                    '}';
        }
    }


    public static class OrderInfo implements Serializable {

        private String id;
        private String user_id;
        private String shop_id;
        private String coupon_id;
        private String order_id;
        private String code;
        private String cover;
        private String amount;
        private String price;
        private String start_at;
        private String end_at;
        private String status;
        private String content;
        private String rec_num;
        private String title;
        private int type;
        private String created_at;
        private String verify_at;
        private CouponsEntity.Coupons coupon;
        private ShopDetail shop;
        private ReserveEntity.UserInfo user;
        private Order order;

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getRec_num() {
            return rec_num;
        }

        public void setRec_num(String rec_num) {
            this.rec_num = rec_num;
        }

        public String getPrice() {
            return price;
        }

        public void setPrice(String price) {
            this.price = price;
        }

        public String getStart_at() {
            return start_at;
        }

        public void setStart_at(String start_at) {
            this.start_at = start_at;
        }

        public String getEnd_at() {
            return end_at;
        }

        public void setEnd_at(String end_at) {
            this.end_at = end_at;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public String getCover() {
            return cover;
        }

        public void setCover(String cover) {
            this.cover = cover;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getUser_id() {
            return user_id;
        }

        public void setUser_id(String user_id) {
            this.user_id = user_id;
        }

        public String getShop_id() {
            return shop_id;
        }

        public void setShop_id(String shop_id) {
            this.shop_id = shop_id;
        }

        public String getCoupon_id() {
            return coupon_id;
        }

        public void setCoupon_id(String coupon_id) {
            this.coupon_id = coupon_id;
        }

        public String getOrder_id() {
            return order_id;
        }

        public void setOrder_id(String order_id) {
            this.order_id = order_id;
        }

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getAmount() {
            return amount;
        }

        public void setAmount(String amount) {
            this.amount = amount;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public String getCreated_at() {
            return created_at;
        }

        public void setCreated_at(String created_at) {
            this.created_at = created_at;
        }

        public String getVerify_at() {
            return verify_at;
        }

        public void setVerify_at(String verify_at) {
            this.verify_at = verify_at;
        }

        public CouponsEntity.Coupons getCoupon() {
            return coupon;
        }

        public void setCoupon(CouponsEntity.Coupons coupon) {
            this.coupon = coupon;
        }

        public ShopDetail getShop() {
            return shop;
        }

        public void setShop(ShopDetail shop) {
            this.shop = shop;
        }

        public ReserveEntity.UserInfo getUser() {
            return user;
        }

        public void setUser(ReserveEntity.UserInfo user) {
            this.user = user;
        }

        public Order getOrder() {
            return order;
        }

        public void setOrder(Order order) {
            this.order = order;
        }

        @Override
        public String toString() {
            return "OrderInfo{" +
                    "id='" + id + '\'' +
                    ", user_id='" + user_id + '\'' +
                    ", shop_id='" + shop_id + '\'' +
                    ", coupon_id='" + coupon_id + '\'' +
                    ", order_id='" + order_id + '\'' +
                    ", code='" + code + '\'' +
                    ", cover='" + cover + '\'' +
                    ", amount='" + amount + '\'' +
                    ", status='" + status + '\'' +
                    ", type=" + type +
                    ", created_at='" + created_at + '\'' +
                    ", verify_at='" + verify_at + '\'' +
                    ", coupon=" + coupon +
                    ", shop=" + shop +
                    ", user=" + user +
                    ", order=" + order +
                    '}';
        }
    }

    public static class ShopDetail implements Serializable {
        private String shop_id;
        private String title;
        private String status;
        private String verify_status;
        private String type;
        private String consumption;
        private String priority;
        private String cover;
        private String phone;
        private String province_id;
        private String city_id;
        private String district_id;
        private String address;
        private String longitude;
        private String latitude;

        public String getPriority() {
            return priority;
        }

        public void setPriority(String priority) {
            this.priority = priority;
        }

        public String getShop_id() {
            return shop_id;
        }

        public void setShop_id(String shop_id) {
            this.shop_id = shop_id;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public String getVerify_status() {
            return verify_status;
        }

        public void setVerify_status(String verify_status) {
            this.verify_status = verify_status;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getConsumption() {
            return consumption;
        }

        public void setConsumption(String consumption) {
            this.consumption = consumption;
        }

        public String getCover() {
            return cover;
        }

        public void setCover(String cover) {
            this.cover = cover;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public String getProvince_id() {
            return province_id;
        }

        public void setProvince_id(String province_id) {
            this.province_id = province_id;
        }

        public String getCity_id() {
            return city_id;
        }

        public void setCity_id(String city_id) {
            this.city_id = city_id;
        }

        public String getDistrict_id() {
            return district_id;
        }

        public void setDistrict_id(String district_id) {
            this.district_id = district_id;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getLongitude() {
            return longitude;
        }

        public void setLongitude(String longitude) {
            this.longitude = longitude;
        }

        public String getLatitude() {
            return latitude;
        }

        public void setLatitude(String latitude) {
            this.latitude = latitude;
        }

        @Override
        public String toString() {
            return "ShopDetail{" +
                    "shop_id='" + shop_id + '\'' +
                    ", title='" + title + '\'' +
                    ", status='" + status + '\'' +
                    ", verify_status='" + verify_status + '\'' +
                    ", type='" + type + '\'' +
                    ", consumption='" + consumption + '\'' +
                    ", cover='" + cover + '\'' +
                    ", phone='" + phone + '\'' +
                    ", province_id='" + province_id + '\'' +
                    ", city_id='" + city_id + '\'' +
                    ", district_id='" + district_id + '\'' +
                    ", address='" + address + '\'' +
                    ", longitude='" + longitude + '\'' +
                    ", latitude='" + latitude + '\'' +
                    '}';
        }
    }

    public static class Order implements Serializable {

        private String id;
        private String channel;
        private String total_amount;
        private String receipt_amount;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getChannel() {
            return channel;
        }

        public void setChannel(String channel) {
            this.channel = channel;
        }

        public String getTotal_amount() {
            return total_amount;
        }

        public void setTotal_amount(String total_amount) {
            this.total_amount = total_amount;
        }

        public String getReceipt_amount() {
            return receipt_amount;
        }

        public void setReceipt_amount(String receipt_amount) {
            this.receipt_amount = receipt_amount;
        }

        @Override
        public String toString() {
            return "Order{" +
                    "id='" + id + '\'' +
                    ", channel='" + channel + '\'' +
                    ", total_amount='" + total_amount + '\'' +
                    ", receipt_amount='" + receipt_amount + '\'' +
                    '}';
        }
    }

}
